﻿using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;

namespace Open.EMR.UIElements
{
    public class BlodLabel : ElementBase
    {
        public void Add2Doc(RichTextBox richTextBox)
        {
            Paragraph paragraph = new Paragraph();
            Run run = new Run() { Text = "我是红色的Run", Background = new SolidColorBrush(Color.FromRgb(255, 0, 0)) };
            paragraph.Inlines.Add(run);
            richTextBox.Document.Blocks.Add(paragraph);
        }
    }
}
